package com.aizhixin.lab.company.repository;

import com.aizhixin.lab.company.entity.ReleaseNotice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

public interface ReleaseNoticeRepository extends JpaRepository<ReleaseNotice, Long> {
    public Page<ReleaseNotice> findAllByNameLikeAndDeleteFlagNotAndUserId(Pageable page, String name, Integer deleteFlag,Long userId);

    public Page<ReleaseNotice> findAllByDeleteFlagNotAndUserId(Pageable page, Integer deleteFlag,Long userId);

    public Page<ReleaseNotice> findAllByNameLikeAndDeleteFlagAndUserId(Pageable page, String name, Integer deleteFlag,Long userId);

    public Page<ReleaseNotice> findAllByDeleteFlagAndUserId(Pageable page, Integer deleteFlag,Long userId);
    void deleteByParentId(Long parentId);
}
